// 这个模块主要是获取sku模块的数据
import request from '@/utils/request'

// 获取sku列表数据
//  /admin/product/list/{page}/{limit}   get
export const reqSkuList = (page, limit) => {
  return request({ url: `/admin/product/list/${page}/${limit}`, method: 'get' })
}

// 产品上架
//   /admin/product/onSale/{skuId}   get
export const reqOnSale = (skuId) => {
  return request({ url: `/admin/product/onSale/${skuId}`, method: 'get' })
}

// 产品下架
//   /admin/product/cancelSale/{skuId}    get
export const reqCancelSale = (skuId) => {
  return request({ url: `/admin/product/cancelSale/${skuId}`, method: 'get' })
}

//  查看当前sku详细信息
//   /admin/product/getSkuById/{skuId}   get
export const reqSkuInfo = (skuId) => {
  return request({ url: `/admin/product/getSkuById/${skuId}`, method: 'get' })
}
